package com.wy2cloud.authorize.entity;

import javax.persistence.*;
import org.hibernate.annotations.GenericGenerator;



/** 
 * AuthorizeUserRole 实体
 * @author wuyy(16349023@qq.com)
 * @date 2018年04月04日 11:57:29
 *
 */
@Table(name="authorize_user_role")
@Entity
public class AuthorizeUserRole implements java.io.Serializable{
	private static final long serialVersionUID = 1L;
	private String id;
	private String userId;
	private String roleId;
	
	@Override
	public String toString(){
		return "id:"+this.id+","+"userId:"+this.userId+","+"roleId:"+this.roleId;
	}
	

	
	@Id
	@GeneratedValue(generator="system-uuid")
	@GenericGenerator(name="system-uuid", strategy="uuid.hex")
	@Column(name = "id") 
	public String getId() {
		return this.id;
	}

	public void setId(String value) {
		this.id = value;
	}	

	
	@Column(name = "user_id") 
	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String value) {
		this.userId = value;
	}	

	
	@Column(name = "role_id") 
	public String getRoleId() {
		return this.roleId;
	}

	public void setRoleId(String value) {
		this.roleId = value;
	}	
}